﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using Shut;

public partial class master_Global : System.Web.UI.MasterPage
{
	protected override void OnPreRender(EventArgs e)
	{
		base.OnPreRender(e);
		// change form action to context
		Page.Form.Action = Request.RawUrl;
	}
    protected void Page_Load(object sender, EventArgs e)
	{
		
		if (!SiteSettings.Instance.DebugMode)
		{
			//((UiPage)Page).AddStylesheetInclude("http://fonts.googleapis.com/css?family=Crafty Girls&subset=latin", "screen");
		}
    }
	protected string UI_GetDirClass(){
		if (((UiPage)Page).pageDirection == "rtl")
		{
			return "class='rtl'";
		}
		return "";
	}
	
}
